/**
 * @file Game.cpp
 * @author  Aljosa Osep <aljosa.osep@gmail.com>
 * @version 1.0
 *
 * @section LICENSE
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details at
 * http://www.gnu.org/copyleft/gpl.html
 *
 * @section DESCRIPTION
 *
 * This abstract class represents the game. Your application should override this class.
 */


#include "game.h"


using namespace xEngine::Renderer;

namespace xEngine
{
      namespace CoreSystem
      {
          // Default constructor
          Game::Game() {
              this->world = NULL; // Set world to NULL
          }

          // Game-set constructor
          Game::Game(World *world) { // Game-set constructor
              this->world = world;
          }

          // Destructor
          Game::~Game() {
              // Release world
              if ( this->world != NULL ) {
                  delete this->world;
              }
          }

          // Setters
         void Game::setWorld(World *world) {
              this->world = world;
          }

          // Getters
          World* Game::getWorld() const {
              return this->world;
          }
      }
}

